import request from '@/utils/request'

// 查询过卡记录列表
export function listOnSite(query) {
  return request({
    url: '/kmwlpts/gather/list',
    method: 'get',
    params: query
  })
}

// 查询通道列表
export function selectChannelInfoList(query) {
  return request({
    url: '/system/channelInfo/selectList',
    method: 'get',
    params: query
  })
}

// 查询海关编码列表
export function selectCustomsList(query) {
  return request({
    url: '/system/customs/selectList',
    method: 'get',
    params: query
  })
}


// 查询过卡记录详细
export function getOnSite(id) {
  return request({
    url: '/kmwlpts/gather/' + id,
    method: 'get'
  })
}

// 新增过卡记录
export function addOnSite(data) {
  return request({
    url: '/system/onSite/add',
    method: 'post',
    data: data
  })
}

// 修改过卡记录
export function updateOnSite(data) {
  return request({
    url: '/system/onSite/edit',
    method: 'post',
    data: data
  })
}

// 删除过卡记录
export function delOnSite(id) {
  return request({
    url: '/kmwlpts/gather/' + id,
    method: 'delete'
  })
}

// 导出过卡记录
export function exportOnSite(query) {
  return request({
    url: '/system/onSite/export',
    method: 'get',
    params: query
  })
}
